package com.scenic.common.service;

import com.github.pagehelper.PageInfo;
import com.scenic.common.bean.Comment;
import com.scenic.common.exception.ScenicSpotException;

import java.util.List;

public interface CommentService {
    //添加
    Integer insert(Comment comment);
    //根据id删除
    boolean delete(Integer id, Integer userId) throws ScenicSpotException;
    //修改
    boolean update(Comment comment,  Integer userId) throws ScenicSpotException;
    //根据条件查询
    List<Comment> selectByCondition(Comment condition);
    PageInfo<Comment> selectByPage(Integer pageNum, Integer pageSize, Comment condition);
    //根据id查询
    Comment selectById(Integer id);
}
